import React from 'react';
import {useCounterContext} from './useCounter';

export function Count() { 
    // use the context 
    const { count } = useCounterContext(); 
    return <span>{count}</span>; 
  } 